<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello mdui</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<!--标准mdui.css-->
		<link rel="stylesheet" href="../../statics/mdui/css/mdui.min.css">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="../../statics/mdui/css/app.css"/>
		<script type="text/javascript" src="../../statics/common/js/header.js"></script>
		<style>
			
			.title{
				margin: 20px 15px 10px;
				color: #6d6d72;
				font-size: 15px;
			}
			
			.oa-contact-cell.mdui-table .mdui-table-cell {
				padding: 11px 0;
				vertical-align: middle;
			}
			
			.oa-contact-cell {
				position: relative;
				margin: -11px 0;
			}
	
			.oa-contact-avatar {
				width: 75px;
			}
			.oa-contact-avatar img {
				border-radius: 50%;
			}
			.oa-contact-content {
				width: 100%;
			}
			.oa-contact-name {
				margin-right: 20px;
			}
			.oa-contact-name, oa-contact-position {
				float: left;
			}
		</style>
	</head>

	<body>
		<header class="mdui-bar mdui-bar-nav">
			<a class="mdui-action-back mdui-icon mdui-icon-left-nav mdui-pull-left"></a>
			<h1 class="mdui-title">底部选项卡-div模式</h1>
		</header>
		<nav class="mdui-bar mdui-bar-tab">
			<a class="mdui-tab-item mdui-active" href="#tabbar">
				<span class="mdui-icon mdui-icon-home"></span>
				<span class="mdui-tab-label">首页</span>
			</a>
			<a class="mdui-tab-item" href="#tabbar-with-chat">
				<span class="mdui-icon mdui-icon-email"><span class="mdui-badge">9</span></span>
				<span class="mdui-tab-label">消息</span>
			</a>
			<a class="mdui-tab-item" href="#tabbar-with-contact">
				<span class="mdui-icon mdui-icon-contact"></span>
				<span class="mdui-tab-label">通讯录</span>
			</a>
			<a class="mdui-tab-item" href="#tabbar-with-map">
				<span class="mdui-icon mdui-icon-gear"></span>
				<span class="mdui-tab-label">设置</span>
			</a>
		</nav>
		<div class="mdui-content">
			<div id="tabbar" class="mdui-control-content mdui-active">
				<div class="title">这是div模式选项卡中的第1个子页面.</div>
				<div class="title">何谓div模式的选项卡？
					其实就是通过DIV模拟一个独立页面，通过DIV的显示、隐藏模拟不同页面的切换，典型的SPA模式；</div>
				<div class="title">
					这种模式适合简单业务系统，因为每个选项卡内容要写在一个DIV中，
					若逻辑复杂，会导致当前页面DOM结构繁杂，造成webview响应缓慢，甚至崩溃；
					因此若系统较复杂，需要下拉刷新等操作，推荐使用webview模式的选项卡；</div>
			</div>
			<div id="tabbar-with-chat" class="mdui-control-content">
				<div class="title">这是div模式选项卡中的第2个子页面，该页面展示一个消息列表</div>
				
				<ul class="mdui-table-view mdui-table-view-chevron">
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 1</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 2</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 3</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 4</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 5</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 6</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 7</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 8</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 9</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 10</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 11</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 12</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 13</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 14</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 15</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 16</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 17</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 18</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 19</a></li>
					<li class="mdui-table-view-cell"><a href="" class="mdui-navigate-right">Item 20</a></li>
				</ul>
				
			</div>
			<div id="tabbar-with-contact" class="mdui-control-content">
				<div class="title">这是div模式选项卡中的第3个子页面，该页面展示一个通讯录示例.</div>
				<ul class="mdui-table-view mdui-table-view-striped mdui-table-view-condensed">
				<li class="mdui-table-view-cell">
					<div class="mdui-slider-cell">
						<div class="oa-contact-cell mdui-table">
							<div class="oa-contact-avatar mdui-table-cell">
								<img src="../../statics/mdui/images/60x60.gif" />
							</div>
							<div class="oa-contact-content mdui-table-cell">
								<div class="mdui-clearfix">
									<h4 class="oa-contact-name">叶文洁</h4>
									<span class="oa-contact-position mdui-h6">董事长</span>
								</div>
								<p class="oa-contact-email mdui-h6">
									yewenjie@sina.com
								</p>
							</div>
						</div>
					</div>
				</li>
				<li class="mdui-table-view-cell">
					<div class="mdui-slider-cell">
						<div class="oa-contact-cell mdui-table">
							<div class="oa-contact-avatar mdui-table-cell">
								<img src="../../statics/mdui/images/60x60.gif" />
							</div>
							<div class="oa-contact-content mdui-table-cell">
								<div class="mdui-clearfix">
									<h4 class="oa-contact-name">艾AA</h4>
									<span class="oa-contact-position mdui-h6">总经理</span>
								</div>
								<p class="oa-contact-email mdui-h6">
									aaa@163.com
								</p>
							</div>
						</div>
					</div>
				</li>
				<li class="mdui-table-view-cell">
					<div class="mdui-slider-cell">
						<div class="oa-contact-cell mdui-table">
							<div class="oa-contact-avatar mdui-table-cell">
								<img src="../../statics/mdui/images/60x60.gif" />
							</div>
							<div class="oa-contact-content mdui-table-cell">
								<div class="mdui-clearfix">
									<h4 class="oa-contact-name">罗辑</h4>
									<span class="oa-contact-position mdui-h6">员工</span>
								</div>
								<p class="oa-contact-email mdui-h6">
									luoji@126.com
								</p>
							</div>
						</div>
					</div>
				</li>
				<li class="mdui-table-view-cell">
					<div class="mdui-slider-cell">
						<div class="oa-contact-cell mdui-table">
							<div class="oa-contact-avatar mdui-table-cell">
								<img src="../../statics/mdui/images/60x60.gif" />
							</div>
							<div class="oa-contact-content mdui-table-cell">
								<div class="mdui-clearfix">
									<h4 class="oa-contact-name">云天明</h4>
									<span class="oa-contact-position mdui-h6">员工</span>
								</div>
								<p class="oa-contact-email mdui-h6">
									ytm@163.com
								</p>
							</div>
						</div>
					</div>
				</li>
				<li class="mdui-table-view-cell">
					<div class="mdui-slider-cell">
						<div class="oa-contact-cell mdui-table">
							<div class="oa-contact-avatar mdui-table-cell">
								<img src="../../statics/mdui/images/60x60.gif" />
							</div>
							<div class="oa-contact-content mdui-table-cell">
								<div class="mdui-clearfix">
									<h4 class="oa-contact-name">史强</h4>
									<span class="oa-contact-position mdui-h6">员工</span>
								</div>
								<p class="oa-contact-email mdui-h6">
									shiqiang@gmail.com
								</p>
							</div>
						</div>
					</div>
				</li>
			</ul>
			</div>
			<div id="tabbar-with-map" class="mdui-control-content">
				<div class="title">这是div模式选项卡中的第4个子页面，该页面展示一个常见的设置示例.</div>
				<ul class="mdui-table-view">
				<li class="mdui-table-view-cell">
					<a class="mdui-navigate-right">
						新消息通知
					</a>
				</li>
				<li class="mdui-table-view-cell">
					<a class="mdui-navigate-right">
						隐私
					</a>
				</li>
				<li class="mdui-table-view-cell">
					<a class="mdui-navigate-right">
						通用
					</a>
				</li>
			</ul>
			<ul class="mdui-table-view" style="margin-top: 25px;">
				<li class="mdui-table-view-cell">
					<a class="mdui-navigate-right">
						关于mdui
					</a>
				</li>
			</ul>
			<ul class="mdui-table-view" style="margin-top: 25px;">
				<li class="mdui-table-view-cell">
					<a style="text-align: center;color: #FF3B30;">
						退出登录
					</a>
				</li>
			</ul>
			</div>
		</div>
	</body>
	<script src="../../statics/mdui/js/mdui.min.js"></script>
	<script>
		mdui.init({
			swipeBack:true //启用右滑关闭功能
		});
	</script>
</html>